package com.luhuiguo.cms.shared.event;

import com.google.gwt.event.shared.GwtEvent;

public class EditArticleEvent extends GwtEvent<EditArticleEventHandler> {
    public static Type<EditArticleEventHandler> TYPE = new Type<EditArticleEventHandler>();

    private final Long articleId;

    public EditArticleEvent(Long articleId) {
        this.articleId = articleId;
    }



    public Long getArticleId() {
        return articleId;
    }

    @Override
    public Type<EditArticleEventHandler> getAssociatedType() {
        return TYPE;
    }

    @Override
    protected void dispatch(EditArticleEventHandler handler) {
        handler.onEditArticle(this);
    }
}
